import Vue from "vue"
import VueRouter from "vue-router"
import Home from '@/views/layout/home'
import About from '@/views/layout/about'
// 空一行等后面维护放产品组件
import Recruit from '@/views/layout/recruit'
import Contact from '@/views/layout/contact'
import NotFound from '@/views/404/NotFound'


Vue.use(VueRouter)
const routes = [
  { path: '/', redirect: '/home'},
  // 首页
  { path: '/home', component: Home},
  // 关于我们
  { path: '/about', component: About},
  // 空一行等后面维护放产品组件
  // 人才招聘
  { path: '/recruit', component: Recruit},
  // 联系
  { path: '/contact', component: Contact},
  { path: '*', component: NotFound }
]

const router = new VueRouter({
  // mode: 'history',
  routes
})

export default router